package com.tom.pojo;

import java.math.BigDecimal;
import java.util.Date;

public class Food {
    private Integer id;

    private Integer restaurantId;

    private Integer cateId;

    private String title;

    private String description;

    private String cover;

    private BigDecimal price;

    private Short totalSales;

    private Date addTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRestaurantId() {
        return restaurantId;
    }

    public void setRestaurantId(Integer restaurantId) {
        this.restaurantId = restaurantId;
    }

    public Integer getCateId() {
        return cateId;
    }

    public void setCateId(Integer cateId) {
        this.cateId = cateId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover == null ? null : cover.trim();
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Short getTotalSales() {
        return totalSales;
    }

    public void setTotalSales(Short totalSales) {
        this.totalSales = totalSales;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    @Override
    public String toString() {
        return "Food{" +
                "id=" + id +
                ", restaurantId=" + restaurantId +
                ", cateId=" + cateId +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", cover='" + cover + '\'' +
                ", price=" + price +
                ", totalSales=" + totalSales +
                ", addTime=" + addTime +
                '}';
    }
}